package kr.co.boogui.actions;

import java.io.IOException;
import java.net.URLDecoder;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import kr.co.boogui.dao.ShowingDAO;

public class CinemaLocationAction implements ActionHandler {
	@Override
	public String execute(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
		
		String viewPage = "f|/WEB-INF/jsp/admin/cinelist.jsp";		
		String addrkey = req.getParameter("addrkey");
		String gugun = addrkey.split(" ")[1];
		req.setAttribute("cine_list", ShowingDAO.readCineName(gugun));
		
		
		return viewPage;
	}
}
